package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: SysStorage
 * @description:
 * @author: yh
 * @create: 2018-08-22 16:16
 **/
@TableName("sys_storage")
public class SysStorage extends Model<SysStorage> {
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;     // id

    private String key;   //机构id

    private String name;   // 登录名，不可改

    private String type;   // 登录名，不可改

    private Integer size;   // 登录名，不可改

    private String url;

    private Date modified;   // 创建时间

    private Date addTime;   // 创建时间

    @TableLogic
    private byte deleted;   // 修改时间

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public byte getDeleted() {
        return deleted;
    }

    public void setDeleted(byte deleted) {
        this.deleted = deleted;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
